package com.blb.edusearchservice.client;

import com.blb.common.entity.Course;
import com.blb.common.entity.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 调用课程服务的客户端接口
 */
@FeignClient("edu-course-service")
public interface CourseServiceClient {

    @GetMapping("/courses")
    ResponseResult<List<Course>> getAllCourses();
}
